package day3.demo4_join;

public class Test {
    public static void main(String[] args) {
        A a = new A();
        B b = new B();
        Thread t1 = new Thread(a, "线程a");
        Thread t2 = new Thread(b, "线程b");
        a.b = t2;
        t1.start();
        t2.start();
    }
}
